<?php
function __autoload($classname)
{
    include_once $classname.".php";
}

$teacher1=new Teacher();
$teacher2=new Teacher();
$teacher1->name="小猪";
$teacher2->name="小徐";
$teacher1->age=20;
$teacher2->age=20;
$teacher1->sex="男";
$teacher2->sex="男";
$teacher1->show();
$teacher2->show();

$student1=new Student();
$student2=new Student();
$student2->name="小徐";

$student1->show();
$student2->show();

$commocity=new Commodity();
$commocity->name="打气筒";
$commocity->price=20;
$commocity->show();

$phone=new Phone();
$phone->name="手机";
$phone->price=1000;
$phone->type="华为";
$phone->made="中国";
$phone->show();

$book=new Book();
$book->name="书";
$book->price=1000;
$book->Author="马丑";
$book->made="人民出版社";
$book->show();

